﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="AlarmData" targetNamespace="http://tempuri.org/AlarmData.xsd" xmlns:mstns="http://tempuri.org/AlarmData.xsd" xmlns="http://tempuri.org/AlarmData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="openXDAConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Public" Name="openXDAConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FaultData.Properties.Settings.GlobalReference.Default.openXDAConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AlarmTypeTableAdapter" GeneratorDataComponentClassName="AlarmTypeTableAdapter" Name="AlarmType" UserDataComponentName="AlarmTypeTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.AlarmType" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[AlarmType] WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[AlarmType] ([Name], [Description]) VALUES (@Name, @Description);
SELECT ID, Name, Description FROM AlarmType WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, Name, Description FROM dbo.AlarmType</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[AlarmType] SET [Name] = @Name, [Description] = @Description WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name));
SELECT ID, Name, Description FROM AlarmType WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="Description" DataSetColumn="Description" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AlarmLogTableAdapter" GeneratorDataComponentClassName="AlarmLogTableAdapter" Name="AlarmLog" UserDataComponentName="AlarmLogTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.AlarmLog" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[AlarmLog] WHERE (([ID] = @Original_ID) AND ([ChannelID] = @Original_ChannelID) AND ([AlarmTypeID] = @Original_AlarmTypeID) AND ([Time] = @Original_Time) AND ([Severity] = @Original_Severity) AND ((@IsNull_LimitHigh = 1 AND [LimitHigh] IS NULL) OR ([LimitHigh] = @Original_LimitHigh)) AND ((@IsNull_LimitLow = 1 AND [LimitLow] IS NULL) OR ([LimitLow] = @Original_LimitLow)) AND ([Value] = @Original_Value))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Time" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LimitHigh" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LimitHigh" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_LimitHigh" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LimitHigh" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LimitLow" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LimitLow" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_LimitLow" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LimitLow" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Value" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Value" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[AlarmLog] ([ChannelID], [AlarmTypeID], [Time], [Severity], [LimitHigh], [LimitLow], [Value]) VALUES (@ChannelID, @AlarmTypeID, @Time, @Severity, @LimitHigh, @LimitLow, @Value);
SELECT ID, ChannelID, AlarmTypeID, Time, Severity, LimitHigh, LimitLow, Value FROM AlarmLog WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Time" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@LimitHigh" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LimitHigh" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@LimitLow" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LimitLow" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Value" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Value" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, ChannelID, AlarmTypeID, Time, Severity, LimitHigh, LimitLow, Value FROM dbo.AlarmLog</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[AlarmLog] SET [ChannelID] = @ChannelID, [AlarmTypeID] = @AlarmTypeID, [Time] = @Time, [Severity] = @Severity, [LimitHigh] = @LimitHigh, [LimitLow] = @LimitLow, [Value] = @Value WHERE (([ID] = @Original_ID) AND ([ChannelID] = @Original_ChannelID) AND ([AlarmTypeID] = @Original_AlarmTypeID) AND ([Time] = @Original_Time) AND ([Severity] = @Original_Severity) AND ((@IsNull_LimitHigh = 1 AND [LimitHigh] IS NULL) OR ([LimitHigh] = @Original_LimitHigh)) AND ((@IsNull_LimitLow = 1 AND [LimitLow] IS NULL) OR ([LimitLow] = @Original_LimitLow)) AND ([Value] = @Original_Value));
SELECT ID, ChannelID, AlarmTypeID, Time, Severity, LimitHigh, LimitLow, Value FROM AlarmLog WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Time" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@LimitHigh" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LimitHigh" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@LimitLow" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LimitLow" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Value" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Value" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Time" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="Time" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LimitHigh" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LimitHigh" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_LimitHigh" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LimitHigh" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_LimitLow" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LimitLow" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_LimitLow" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="LimitLow" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Value" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Value" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="ChannelID" DataSetColumn="ChannelID" />
              <Mapping SourceColumn="AlarmTypeID" DataSetColumn="AlarmTypeID" />
              <Mapping SourceColumn="Time" DataSetColumn="Time" />
              <Mapping SourceColumn="Severity" DataSetColumn="Severity" />
              <Mapping SourceColumn="LimitHigh" DataSetColumn="LimitHigh" />
              <Mapping SourceColumn="LimitLow" DataSetColumn="LimitLow" />
              <Mapping SourceColumn="Value" DataSetColumn="Value" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DefaultAlarmRangeLimitTableAdapter" GeneratorDataComponentClassName="DefaultAlarmRangeLimitTableAdapter" Name="DefaultAlarmRangeLimit" UserDataComponentName="DefaultAlarmRangeLimitTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.DefaultAlarmRangeLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[DefaultAlarmRangeLimit] WHERE (([ID] = @Original_ID) AND ([MeasurementTypeID] = @Original_MeasurementTypeID) AND ([MeasurementCharacteristicID] = @Original_MeasurementCharacteristicID) AND ([AlarmTypeID] = @Original_AlarmTypeID) AND ([Severity] = @Original_Severity) AND ((@IsNull_High = 1 AND [High] IS NULL) OR ([High] = @Original_High)) AND ((@IsNull_Low = 1 AND [Low] IS NULL) OR ([Low] = @Original_Low)) AND ([RangeInclusive] = @Original_RangeInclusive) AND ([PerUnit] = @Original_PerUnit))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MeasurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MeasurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_High" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Low" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[DefaultAlarmRangeLimit] ([MeasurementTypeID], [MeasurementCharacteristicID], [AlarmTypeID], [Severity], [High], [Low], [RangeInclusive], [PerUnit]) VALUES (@MeasurementTypeID, @MeasurementCharacteristicID, @AlarmTypeID, @Severity, @High, @Low, @RangeInclusive, @PerUnit);
SELECT ID, MeasurementTypeID, MeasurementCharacteristicID, AlarmTypeID, Severity, High, Low, RangeInclusive, PerUnit FROM DefaultAlarmRangeLimit WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MeasurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MeasurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, MeasurementTypeID, MeasurementCharacteristicID, AlarmTypeID, Severity, High, Low, RangeInclusive, PerUnit FROM dbo.DefaultAlarmRangeLimit</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[DefaultAlarmRangeLimit] SET [MeasurementTypeID] = @MeasurementTypeID, [MeasurementCharacteristicID] = @MeasurementCharacteristicID, [AlarmTypeID] = @AlarmTypeID, [Severity] = @Severity, [High] = @High, [Low] = @Low, [RangeInclusive] = @RangeInclusive, [PerUnit] = @PerUnit WHERE (([ID] = @Original_ID) AND ([MeasurementTypeID] = @Original_MeasurementTypeID) AND ([MeasurementCharacteristicID] = @Original_MeasurementCharacteristicID) AND ([AlarmTypeID] = @Original_AlarmTypeID) AND ([Severity] = @Original_Severity) AND ((@IsNull_High = 1 AND [High] IS NULL) OR ([High] = @Original_High)) AND ((@IsNull_Low = 1 AND [Low] IS NULL) OR ([Low] = @Original_Low)) AND ([RangeInclusive] = @Original_RangeInclusive) AND ([PerUnit] = @Original_PerUnit));
SELECT ID, MeasurementTypeID, MeasurementCharacteristicID, AlarmTypeID, Severity, High, Low, RangeInclusive, PerUnit FROM DefaultAlarmRangeLimit WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MeasurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MeasurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MeasurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MeasurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_High" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Low" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="MeasurementTypeID" DataSetColumn="MeasurementTypeID" />
              <Mapping SourceColumn="MeasurementCharacteristicID" DataSetColumn="MeasurementCharacteristicID" />
              <Mapping SourceColumn="AlarmTypeID" DataSetColumn="AlarmTypeID" />
              <Mapping SourceColumn="Severity" DataSetColumn="Severity" />
              <Mapping SourceColumn="High" DataSetColumn="High" />
              <Mapping SourceColumn="Low" DataSetColumn="Low" />
              <Mapping SourceColumn="RangeInclusive" DataSetColumn="RangeInclusive" />
              <Mapping SourceColumn="PerUnit" DataSetColumn="PerUnit" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.DefaultAlarmRangeLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, MeasurementTypeID, MeasurementCharacteristicID, AlarmTypeID, Severity, High, Low, RangeInclusive, PerUnit FROM dbo.DefaultAlarmRangeLimit WHERE MeasurementTypeID = @measurementTypeID AND MeasurementCharacteristicID = @measurementCharacteristicID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="measurementTypeID" ColumnName="MeasurementTypeID" DataSourceName="openXDA.dbo.DefaultAlarmRangeLimit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@measurementTypeID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="MeasurementTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="measurementCharacteristicID" ColumnName="MeasurementCharacteristicID" DataSourceName="openXDA.dbo.DefaultAlarmRangeLimit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@measurementCharacteristicID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="MeasurementCharacteristicID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AlarmRangeLimitTableAdapter" GeneratorDataComponentClassName="AlarmRangeLimitTableAdapter" Name="AlarmRangeLimit" UserDataComponentName="AlarmRangeLimitTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.AlarmRangeLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[AlarmRangeLimit] WHERE (([ID] = @Original_ID) AND ([ChannelID] = @Original_ChannelID) AND ([AlarmTypeID] = @Original_AlarmTypeID) AND ([Severity] = @Original_Severity) AND ((@IsNull_High = 1 AND [High] IS NULL) OR ([High] = @Original_High)) AND ((@IsNull_Low = 1 AND [Low] IS NULL) OR ([Low] = @Original_Low)) AND ([RangeInclusive] = @Original_RangeInclusive) AND ([PerUnit] = @Original_PerUnit) AND ([Enabled] = @Original_Enabled))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_High" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Low" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[AlarmRangeLimit] ([ChannelID], [AlarmTypeID], [Severity], [High], [Low], [RangeInclusive], [PerUnit], [Enabled]) VALUES (@ChannelID, @AlarmTypeID, @Severity, @High, @Low, @RangeInclusive, @PerUnit, @Enabled);
SELECT ID, ChannelID, AlarmTypeID, Severity, High, Low, RangeInclusive, PerUnit, Enabled FROM AlarmRangeLimit WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, ChannelID, AlarmTypeID, Severity, High, Low, RangeInclusive, PerUnit, Enabled FROM dbo.AlarmRangeLimit</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[AlarmRangeLimit] SET [ChannelID] = @ChannelID, [AlarmTypeID] = @AlarmTypeID, [Severity] = @Severity, [High] = @High, [Low] = @Low, [RangeInclusive] = @RangeInclusive, [PerUnit] = @PerUnit, [Enabled] = @Enabled WHERE (([ID] = @Original_ID) AND ([ChannelID] = @Original_ChannelID) AND ([AlarmTypeID] = @Original_AlarmTypeID) AND ([Severity] = @Original_Severity) AND ((@IsNull_High = 1 AND [High] IS NULL) OR ([High] = @Original_High)) AND ((@IsNull_Low = 1 AND [Low] IS NULL) OR ([Low] = @Original_Low)) AND ([RangeInclusive] = @Original_RangeInclusive) AND ([PerUnit] = @Original_PerUnit) AND ([Enabled] = @Original_Enabled));
SELECT ID, ChannelID, AlarmTypeID, Severity, High, Low, RangeInclusive, PerUnit, Enabled FROM AlarmRangeLimit WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_High" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Low" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RangeInclusive" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RangeInclusive" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PerUnit" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PerUnit" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="ChannelID" DataSetColumn="ChannelID" />
              <Mapping SourceColumn="AlarmTypeID" DataSetColumn="AlarmTypeID" />
              <Mapping SourceColumn="Severity" DataSetColumn="Severity" />
              <Mapping SourceColumn="High" DataSetColumn="High" />
              <Mapping SourceColumn="Low" DataSetColumn="Low" />
              <Mapping SourceColumn="RangeInclusive" DataSetColumn="RangeInclusive" />
              <Mapping SourceColumn="PerUnit" DataSetColumn="PerUnit" />
              <Mapping SourceColumn="Enabled" DataSetColumn="Enabled" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.AlarmRangeLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, ChannelID, AlarmTypeID, Severity, High, Low, RangeInclusive, PerUnit, Enabled FROM dbo.AlarmRangeLimit WHERE ChannelID = @channelID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="channelID" ColumnName="ChannelID" DataSourceName="openXDA.dbo.AlarmRangeLimit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@channelID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="HourOfWeekLimitTableAdapter" GeneratorDataComponentClassName="HourOfWeekLimitTableAdapter" Name="HourOfWeekLimit" UserDataComponentName="HourOfWeekLimitTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.HourOfWeekLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[HourOfWeekLimit] WHERE (([ID] = @Original_ID) AND ([ChannelID] = @Original_ChannelID) AND ([AlarmTypeID] = @Original_AlarmTypeID) AND ([HourOfWeek] = @Original_HourOfWeek) AND ([Severity] = @Original_Severity) AND ([High] = @Original_High) AND ([Low] = @Original_Low) AND ([Enabled] = @Original_Enabled))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_HourOfWeek" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HourOfWeek" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[HourOfWeekLimit] ([ChannelID], [AlarmTypeID], [HourOfWeek], [Severity], [High], [Low], [Enabled]) VALUES (@ChannelID, @AlarmTypeID, @HourOfWeek, @Severity, @High, @Low, @Enabled);
SELECT ID, ChannelID, AlarmTypeID, HourOfWeek, Severity, High, Low, Enabled FROM HourOfWeekLimit WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@HourOfWeek" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HourOfWeek" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, ChannelID, AlarmTypeID, HourOfWeek, Severity, High, Low, Enabled FROM dbo.HourOfWeekLimit</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[HourOfWeekLimit] SET [ChannelID] = @ChannelID, [AlarmTypeID] = @AlarmTypeID, [HourOfWeek] = @HourOfWeek, [Severity] = @Severity, [High] = @High, [Low] = @Low, [Enabled] = @Enabled WHERE (([ID] = @Original_ID) AND ([ChannelID] = @Original_ChannelID) AND ([AlarmTypeID] = @Original_AlarmTypeID) AND ([HourOfWeek] = @Original_HourOfWeek) AND ([Severity] = @Original_Severity) AND ([High] = @Original_High) AND ([Low] = @Original_Low) AND ([Enabled] = @Original_Enabled));
SELECT ID, ChannelID, AlarmTypeID, HourOfWeek, Severity, High, Low, Enabled FROM HourOfWeekLimit WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@HourOfWeek" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HourOfWeek" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ChannelID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AlarmTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AlarmTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_HourOfWeek" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="HourOfWeek" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Severity" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Severity" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_High" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="High" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Low" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Low" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Enabled" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Enabled" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="ChannelID" DataSetColumn="ChannelID" />
              <Mapping SourceColumn="AlarmTypeID" DataSetColumn="AlarmTypeID" />
              <Mapping SourceColumn="HourOfWeek" DataSetColumn="HourOfWeek" />
              <Mapping SourceColumn="Severity" DataSetColumn="Severity" />
              <Mapping SourceColumn="High" DataSetColumn="High" />
              <Mapping SourceColumn="Low" DataSetColumn="Low" />
              <Mapping SourceColumn="Enabled" DataSetColumn="Enabled" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.HourOfWeekLimit" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, ChannelID, AlarmTypeID, HourOfWeek, Severity, High, Low, Enabled FROM dbo.HourOfWeekLimit WHERE ChannelID = @channelID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="channelID" ColumnName="ChannelID" DataSourceName="openXDA.dbo.HourOfWeekLimit" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@channelID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ChannelID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="AlarmData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="AlarmData" msprop:Generator_UserDSName="AlarmData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="AlarmType" msprop:Generator_TableClassName="AlarmTypeDataTable" msprop:Generator_TableVarName="tableAlarmType" msprop:Generator_TablePropName="AlarmType" msprop:Generator_RowDeletingName="AlarmTypeRowDeleting" msprop:Generator_RowChangingName="AlarmTypeRowChanging" msprop:Generator_RowEvHandlerName="AlarmTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="AlarmTypeRowDeleted" msprop:Generator_UserTableName="AlarmType" msprop:Generator_RowChangedName="AlarmTypeRowChanged" msprop:Generator_RowEvArgName="AlarmTypeRowChangeEvent" msprop:Generator_RowClassName="AlarmTypeRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AlarmLog" msprop:Generator_TableClassName="AlarmLogDataTable" msprop:Generator_TableVarName="tableAlarmLog" msprop:Generator_TablePropName="AlarmLog" msprop:Generator_RowDeletingName="AlarmLogRowDeleting" msprop:Generator_RowChangingName="AlarmLogRowChanging" msprop:Generator_RowEvHandlerName="AlarmLogRowChangeEventHandler" msprop:Generator_RowDeletedName="AlarmLogRowDeleted" msprop:Generator_UserTableName="AlarmLog" msprop:Generator_RowChangedName="AlarmLogRowChanged" msprop:Generator_RowEvArgName="AlarmLogRowChangeEvent" msprop:Generator_RowClassName="AlarmLogRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="ChannelID" msprop:Generator_ColumnVarNameInTable="columnChannelID" msprop:Generator_ColumnPropNameInRow="ChannelID" msprop:Generator_ColumnPropNameInTable="ChannelIDColumn" msprop:Generator_UserColumnName="ChannelID" type="xs:int" />
              <xs:element name="AlarmTypeID" msprop:Generator_ColumnVarNameInTable="columnAlarmTypeID" msprop:Generator_ColumnPropNameInRow="AlarmTypeID" msprop:Generator_ColumnPropNameInTable="AlarmTypeIDColumn" msprop:Generator_UserColumnName="AlarmTypeID" type="xs:int" />
              <xs:element name="Time" msprop:Generator_ColumnVarNameInTable="columnTime" msprop:Generator_ColumnPropNameInRow="Time" msprop:Generator_ColumnPropNameInTable="TimeColumn" msprop:Generator_UserColumnName="Time" type="xs:dateTime" />
              <xs:element name="Severity" msprop:Generator_ColumnVarNameInTable="columnSeverity" msprop:Generator_ColumnPropNameInRow="Severity" msprop:Generator_ColumnPropNameInTable="SeverityColumn" msprop:Generator_UserColumnName="Severity" type="xs:int" />
              <xs:element name="LimitHigh" msprop:Generator_ColumnVarNameInTable="columnLimitHigh" msprop:Generator_ColumnPropNameInRow="LimitHigh" msprop:Generator_ColumnPropNameInTable="LimitHighColumn" msprop:Generator_UserColumnName="LimitHigh" type="xs:double" minOccurs="0" />
              <xs:element name="LimitLow" msprop:Generator_ColumnVarNameInTable="columnLimitLow" msprop:Generator_ColumnPropNameInRow="LimitLow" msprop:Generator_ColumnPropNameInTable="LimitLowColumn" msprop:Generator_UserColumnName="LimitLow" type="xs:double" minOccurs="0" />
              <xs:element name="Value" msprop:Generator_ColumnVarNameInTable="columnValue" msprop:Generator_ColumnPropNameInRow="Value" msprop:Generator_ColumnPropNameInTable="ValueColumn" msprop:Generator_UserColumnName="Value" type="xs:double" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="DefaultAlarmRangeLimit" msprop:Generator_TableClassName="DefaultAlarmRangeLimitDataTable" msprop:Generator_TableVarName="tableDefaultAlarmRangeLimit" msprop:Generator_TablePropName="DefaultAlarmRangeLimit" msprop:Generator_RowDeletingName="DefaultAlarmRangeLimitRowDeleting" msprop:Generator_RowChangingName="DefaultAlarmRangeLimitRowChanging" msprop:Generator_RowEvHandlerName="DefaultAlarmRangeLimitRowChangeEventHandler" msprop:Generator_RowDeletedName="DefaultAlarmRangeLimitRowDeleted" msprop:Generator_UserTableName="DefaultAlarmRangeLimit" msprop:Generator_RowChangedName="DefaultAlarmRangeLimitRowChanged" msprop:Generator_RowEvArgName="DefaultAlarmRangeLimitRowChangeEvent" msprop:Generator_RowClassName="DefaultAlarmRangeLimitRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="MeasurementTypeID" msprop:Generator_ColumnVarNameInTable="columnMeasurementTypeID" msprop:Generator_ColumnPropNameInRow="MeasurementTypeID" msprop:Generator_ColumnPropNameInTable="MeasurementTypeIDColumn" msprop:Generator_UserColumnName="MeasurementTypeID" type="xs:int" />
              <xs:element name="MeasurementCharacteristicID" msprop:Generator_ColumnVarNameInTable="columnMeasurementCharacteristicID" msprop:Generator_ColumnPropNameInRow="MeasurementCharacteristicID" msprop:Generator_ColumnPropNameInTable="MeasurementCharacteristicIDColumn" msprop:Generator_UserColumnName="MeasurementCharacteristicID" type="xs:int" />
              <xs:element name="AlarmTypeID" msprop:Generator_ColumnVarNameInTable="columnAlarmTypeID" msprop:Generator_ColumnPropNameInRow="AlarmTypeID" msprop:Generator_ColumnPropNameInTable="AlarmTypeIDColumn" msprop:Generator_UserColumnName="AlarmTypeID" type="xs:int" />
              <xs:element name="Severity" msprop:Generator_ColumnVarNameInTable="columnSeverity" msprop:Generator_ColumnPropNameInRow="Severity" msprop:Generator_ColumnPropNameInTable="SeverityColumn" msprop:Generator_UserColumnName="Severity" type="xs:int" />
              <xs:element name="High" msprop:Generator_ColumnVarNameInTable="columnHigh" msprop:Generator_ColumnPropNameInRow="High" msprop:Generator_ColumnPropNameInTable="HighColumn" msprop:Generator_UserColumnName="High" type="xs:double" minOccurs="0" />
              <xs:element name="Low" msprop:Generator_ColumnVarNameInTable="columnLow" msprop:Generator_ColumnPropNameInRow="Low" msprop:Generator_ColumnPropNameInTable="LowColumn" msprop:Generator_UserColumnName="Low" type="xs:double" minOccurs="0" />
              <xs:element name="RangeInclusive" msprop:Generator_ColumnVarNameInTable="columnRangeInclusive" msprop:Generator_ColumnPropNameInRow="RangeInclusive" msprop:Generator_ColumnPropNameInTable="RangeInclusiveColumn" msprop:Generator_UserColumnName="RangeInclusive" type="xs:int" />
              <xs:element name="PerUnit" msprop:Generator_ColumnVarNameInTable="columnPerUnit" msprop:Generator_ColumnPropNameInRow="PerUnit" msprop:Generator_ColumnPropNameInTable="PerUnitColumn" msprop:Generator_UserColumnName="PerUnit" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AlarmRangeLimit" msprop:Generator_TableClassName="AlarmRangeLimitDataTable" msprop:Generator_TableVarName="tableAlarmRangeLimit" msprop:Generator_TablePropName="AlarmRangeLimit" msprop:Generator_RowDeletingName="AlarmRangeLimitRowDeleting" msprop:Generator_RowChangingName="AlarmRangeLimitRowChanging" msprop:Generator_RowEvHandlerName="AlarmRangeLimitRowChangeEventHandler" msprop:Generator_RowDeletedName="AlarmRangeLimitRowDeleted" msprop:Generator_UserTableName="AlarmRangeLimit" msprop:Generator_RowChangedName="AlarmRangeLimitRowChanged" msprop:Generator_RowEvArgName="AlarmRangeLimitRowChangeEvent" msprop:Generator_RowClassName="AlarmRangeLimitRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="ChannelID" msprop:Generator_ColumnVarNameInTable="columnChannelID" msprop:Generator_ColumnPropNameInRow="ChannelID" msprop:Generator_ColumnPropNameInTable="ChannelIDColumn" msprop:Generator_UserColumnName="ChannelID" type="xs:int" />
              <xs:element name="AlarmTypeID" msprop:Generator_ColumnVarNameInTable="columnAlarmTypeID" msprop:Generator_ColumnPropNameInRow="AlarmTypeID" msprop:Generator_ColumnPropNameInTable="AlarmTypeIDColumn" msprop:Generator_UserColumnName="AlarmTypeID" type="xs:int" />
              <xs:element name="Severity" msprop:Generator_ColumnVarNameInTable="columnSeverity" msprop:Generator_ColumnPropNameInRow="Severity" msprop:Generator_ColumnPropNameInTable="SeverityColumn" msprop:Generator_UserColumnName="Severity" type="xs:int" />
              <xs:element name="High" msprop:Generator_ColumnVarNameInTable="columnHigh" msprop:Generator_ColumnPropNameInRow="High" msprop:Generator_ColumnPropNameInTable="HighColumn" msprop:Generator_UserColumnName="High" type="xs:double" minOccurs="0" />
              <xs:element name="Low" msprop:Generator_ColumnVarNameInTable="columnLow" msprop:Generator_ColumnPropNameInRow="Low" msprop:Generator_ColumnPropNameInTable="LowColumn" msprop:Generator_UserColumnName="Low" type="xs:double" minOccurs="0" />
              <xs:element name="RangeInclusive" msprop:Generator_ColumnVarNameInTable="columnRangeInclusive" msprop:Generator_ColumnPropNameInRow="RangeInclusive" msprop:Generator_ColumnPropNameInTable="RangeInclusiveColumn" msprop:Generator_UserColumnName="RangeInclusive" type="xs:int" />
              <xs:element name="PerUnit" msprop:Generator_ColumnVarNameInTable="columnPerUnit" msprop:Generator_ColumnPropNameInRow="PerUnit" msprop:Generator_ColumnPropNameInTable="PerUnitColumn" msprop:Generator_UserColumnName="PerUnit" type="xs:int" />
              <xs:element name="Enabled" msprop:Generator_ColumnVarNameInTable="columnEnabled" msprop:Generator_ColumnPropNameInRow="Enabled" msprop:Generator_ColumnPropNameInTable="EnabledColumn" msprop:Generator_UserColumnName="Enabled" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="HourOfWeekLimit" msprop:Generator_TableClassName="HourOfWeekLimitDataTable" msprop:Generator_TableVarName="tableHourOfWeekLimit" msprop:Generator_TablePropName="HourOfWeekLimit" msprop:Generator_RowDeletingName="HourOfWeekLimitRowDeleting" msprop:Generator_RowChangingName="HourOfWeekLimitRowChanging" msprop:Generator_RowEvHandlerName="HourOfWeekLimitRowChangeEventHandler" msprop:Generator_RowDeletedName="HourOfWeekLimitRowDeleted" msprop:Generator_UserTableName="HourOfWeekLimit" msprop:Generator_RowChangedName="HourOfWeekLimitRowChanged" msprop:Generator_RowEvArgName="HourOfWeekLimitRowChangeEvent" msprop:Generator_RowClassName="HourOfWeekLimitRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="ChannelID" msprop:Generator_ColumnVarNameInTable="columnChannelID" msprop:Generator_ColumnPropNameInRow="ChannelID" msprop:Generator_ColumnPropNameInTable="ChannelIDColumn" msprop:Generator_UserColumnName="ChannelID" type="xs:int" />
              <xs:element name="AlarmTypeID" msprop:Generator_ColumnVarNameInTable="columnAlarmTypeID" msprop:Generator_ColumnPropNameInRow="AlarmTypeID" msprop:Generator_ColumnPropNameInTable="AlarmTypeIDColumn" msprop:Generator_UserColumnName="AlarmTypeID" type="xs:int" />
              <xs:element name="HourOfWeek" msprop:Generator_ColumnVarNameInTable="columnHourOfWeek" msprop:Generator_ColumnPropNameInRow="HourOfWeek" msprop:Generator_ColumnPropNameInTable="HourOfWeekColumn" msprop:Generator_UserColumnName="HourOfWeek" type="xs:int" />
              <xs:element name="Severity" msprop:Generator_ColumnVarNameInTable="columnSeverity" msprop:Generator_ColumnPropNameInRow="Severity" msprop:Generator_ColumnPropNameInTable="SeverityColumn" msprop:Generator_UserColumnName="Severity" type="xs:int" />
              <xs:element name="High" msprop:Generator_ColumnVarNameInTable="columnHigh" msprop:Generator_ColumnPropNameInRow="High" msprop:Generator_ColumnPropNameInTable="HighColumn" msprop:Generator_UserColumnName="High" type="xs:double" />
              <xs:element name="Low" msprop:Generator_ColumnVarNameInTable="columnLow" msprop:Generator_ColumnPropNameInRow="Low" msprop:Generator_ColumnPropNameInTable="LowColumn" msprop:Generator_UserColumnName="Low" type="xs:double" />
              <xs:element name="Enabled" msprop:Generator_ColumnVarNameInTable="columnEnabled" msprop:Generator_ColumnPropNameInRow="Enabled" msprop:Generator_ColumnPropNameInTable="EnabledColumn" msprop:Generator_UserColumnName="Enabled" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AlarmType" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="AlarmLog_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AlarmLog" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="DefaultAlarmRangeLimit_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DefaultAlarmRangeLimit" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="AlarmRangeLimit_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AlarmRangeLimit" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="HourOfWeekLimit_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:HourOfWeekLimit" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>